<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        [v-cloak]{
            display: none;
        }
    </style>
</head>
<body>
    <script src="./js/vue.js"></script>
    <div class="box" v-cloak >
        <input type="text" v-model="msg">  //v-model收集表单数据的一个指令
        <h1>{{msg}}</h1>
    </div>
    <script>
        /*
            v-text
            v-html
            v-once
            v-bind
            v-if
            v-else
            v-else-if
            v-show
            v-for
            v-model
            v-cloak
            v-on
        */
    </script>
    <script>
        let vm=new Vue({
            el:'.box',
            data:{
                msg:'ysn'
            }
        })
    </script>
</body>
</html>